<?php
  include('lock.php');
  //delete from cart upon clicking remove
  if($_SERVER["REQUEST_METHOD"] == "POST")
  {
    if(isset($_POST['deleteID']))
    { 
      $delete=addslashes($_POST['deleteID']);  
      $sql=("DELETE FROM cart WHERE demo_ID='$delete' AND user_ID='$login_session'");
      mysql_query($sql);
      echo"demo". $delete." deleted!"."<br/>";
      header('Location: index2.php');
    }
  } 
?>